package com.ziqikeji.xianyan.dto.user;


import com.ziqikeji.xianyan.entity.user.Role;

/**
 * 角色 dto
 *
 * @author liuyu
 */
public class RoleDTO {

    private String id;

    private String name;

    public RoleDTO() {
    }

    public RoleDTO(Role role) {
        this.id = role.getId();
        this.name = role.getName();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "RoleDTO{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
